/************************************************************************
 * <br>
 * <ul>
 * <li>版权所有：唐山弘川科技有限公司 2009－2020</li>
 * <li>创建日期：2009-8-10</li>
 * <li>初始作者：刘川</li>
 * </ul>
 * <ul>
 * <b>修订历史</b>
 * <li>1、</li>
 * </ul>
 ***********************************************************************/
package com.hy.enterprise.framework.persistence.domain.query.conditions ;

/**
 * <ul>
 * <li>设计作者：刘川</li>
 * <li>设计日期：2009-8-10</li>
 * <li>设计时间：下午03:01:21</li>
 * <li>设计目的：类似于操作符</li>
 * </ul>
 * <ul>
 * <b>修订历史</b>
 * <li>1、</li>
 * </ul>
 */
public enum LikeOperator
                        implements
                        ITernaryOperator
{
	LIKE (
	      " LIKE " ,
	      " ESCAPE " ) ,
	NOT_LIKE (
	          " NOT LIKE " ,
	          " ESCAPE " ) ;
	/**
	 * 
	 */
	private final String	representation ;
	/**
	 * 
	 */
	private final String	secondStringRepresentation ;

	/**
	 * 构造函数
	 * 
	 * @param representation
	 * @param secondStringRepresentation
	 */
	private LikeOperator (
	                       String representation ,
	                       String secondStringRepresentation )
	{
		this.representation =
		                      representation ;
		this.secondStringRepresentation =
		                                  secondStringRepresentation ;
	}

	/**
	 * @see com.hy.enterprise.framework.persistence.domain.query.conditions.ITernaryOperator#getSecondStringRepresentation()
	 */
	public String getSecondStringRepresentation ( )
	{
		return this.secondStringRepresentation ;
	}

	/**
	 * @see com.hy.enterprise.framework.persistence.domain.query.conditions.IOperator#getStringRepresentation()
	 */
	public String getStringRepresentation ( )
	{
		return this.representation ;
	}
}
